<!--
 * @Author: xiawei 1243162387@qq.com
 * @Date: 2024-03-29 10:11:43
 * @LastEditors: xiawei 1243162387@qq.com
 * @LastEditTime: 2024-04-01 15:41:46
-->
<script setup lang="ts">
import { RouterView, useRoute } from "vue-router";
const route = useRoute();
const isMicApp = () => {
  return route.path.startsWith("/microApp");
};
</script>

<template>
  <el-config-provider namespace="base-app">
    <router-view name="TopMenu"></router-view>
    <router-view name="LeftSidebar"></router-view>
    <router-view></router-view>
    <!-- 挂载容器独立出来解决浏览器前进后退（内部路由容器出现null导致挂载失败） -->
    <div v-show="isMicApp()" id="microAppContainer"></div>
    <router-view name="RightSidebar"></router-view>
  </el-config-provider>
</template>

<style scoped></style>
